
package com.one.odf.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for competitorStatsType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="competitorStatsType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="Description" type="{}competitorDescriptionType" minOccurs="0"/&gt;
 *         &lt;element name="Coaches" type="{}coachesType" minOccurs="0"/&gt;
 *         &lt;element name="StatsItems" type="{}statsItemsType" minOccurs="0"/&gt;
 *         &lt;element name="Composition" type="{}compositionResultsType" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="Type" use="required" type="{}competitorTypeType" /&gt;
 *       &lt;attribute name="Order" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
 *       &lt;attribute name="Organisation" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "competitorStatsType", propOrder = {
    "description",
    "coaches",
    "statsItems",
    "composition"
})
public class CompetitorStatsType {

    @XmlElement(name = "Description")
    protected CompetitorDescriptionType description;
    @XmlElement(name = "Coaches")
    protected CoachesType coaches;
    @XmlElement(name = "StatsItems")
    protected StatsItemsType statsItems;
    @XmlElement(name = "Composition")
    protected CompositionResultsType composition;
    @XmlAttribute(name = "Code", required = true)
    protected String code;
    @XmlAttribute(name = "Type", required = true)
    protected CompetitorTypeType type;
    @XmlAttribute(name = "Order", required = true)
    protected int order;
    @XmlAttribute(name = "Organisation")
    protected String organisation;

    /**
     * Gets the value of the description property.
     * 
     * @return
     *     possible object is
     *     {@link CompetitorDescriptionType }
     *     
     */
    public CompetitorDescriptionType getDescription() {
        return description;
    }

    /**
     * Sets the value of the description property.
     * 
     * @param value
     *     allowed object is
     *     {@link CompetitorDescriptionType }
     *     
     */
    public void setDescription(CompetitorDescriptionType value) {
        this.description = value;
    }

    /**
     * Gets the value of the coaches property.
     * 
     * @return
     *     possible object is
     *     {@link CoachesType }
     *     
     */
    public CoachesType getCoaches() {
        return coaches;
    }

    /**
     * Sets the value of the coaches property.
     * 
     * @param value
     *     allowed object is
     *     {@link CoachesType }
     *     
     */
    public void setCoaches(CoachesType value) {
        this.coaches = value;
    }

    /**
     * Gets the value of the statsItems property.
     * 
     * @return
     *     possible object is
     *     {@link StatsItemsType }
     *     
     */
    public StatsItemsType getStatsItems() {
        return statsItems;
    }

    /**
     * Sets the value of the statsItems property.
     * 
     * @param value
     *     allowed object is
     *     {@link StatsItemsType }
     *     
     */
    public void setStatsItems(StatsItemsType value) {
        this.statsItems = value;
    }

    /**
     * Gets the value of the composition property.
     * 
     * @return
     *     possible object is
     *     {@link CompositionResultsType }
     *     
     */
    public CompositionResultsType getComposition() {
        return composition;
    }

    /**
     * Sets the value of the composition property.
     * 
     * @param value
     *     allowed object is
     *     {@link CompositionResultsType }
     *     
     */
    public void setComposition(CompositionResultsType value) {
        this.composition = value;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the type property.
     * 
     * @return
     *     possible object is
     *     {@link CompetitorTypeType }
     *     
     */
    public CompetitorTypeType getType() {
        return type;
    }

    /**
     * Sets the value of the type property.
     * 
     * @param value
     *     allowed object is
     *     {@link CompetitorTypeType }
     *     
     */
    public void setType(CompetitorTypeType value) {
        this.type = value;
    }

    /**
     * Gets the value of the order property.
     * 
     */
    public int getOrder() {
        return order;
    }

    /**
     * Sets the value of the order property.
     * 
     */
    public void setOrder(int value) {
        this.order = value;
    }

    /**
     * Gets the value of the organisation property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getOrganisation() {
        if (organisation == null) {
            return "";
        } else {
            return organisation;
        }
    }

    /**
     * Sets the value of the organisation property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setOrganisation(String value) {
        this.organisation = value;
    }

}
